﻿using System;
using System.Collections.Generic;
using SelfService.Model.Models;

namespace 浏览器客户端.Models.Model 
{
    public class SysClient
    {
        public string Name { get; set; }

        public string Code { get; set; }

        public string Address { get; set; }

        public string Ip { get; set; }

        public string MacAddress { get; set; }

        public string Version { get; set; }

        public List<ClientDevice> Devices { get; set; }

        public List<ClientCardType> CardTypes{ get; set; }

        public bool IsUpdate { get; set; }
        
        public DateTime LastTime { get; set; }
        public DateTime LoginTime { get; set; }
    }


    public class ClientDevice
    {
        public SysClient Client { get; set; }

        public SysDevice Device { get; set; }

        public Guid ClientId { get; set; }

        public Guid DeviceId { get; set; }
    }

    public class ClientCardType 
    {
        public SysClient Client { get; set; }

        public SysCardType CardType { get; set; }

        public Guid ClientId { get; set; }

        public Guid CardTypeId { get; set; }
    }
}
